package com.china08.yxyapi.entity.db.lessons;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 学年
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_lessons_synchro_grade", catalog = "yxy_lessons", uniqueConstraints = {
        @UniqueConstraint(columnNames = { "id", "name" }) })
public class YxyLessonsSynchroGrade extends BaseEntityNoId {

    @Id
    private String id;

    /**
     * 学年名称
     */
    @Column
    private String name;

    /** 排列序号 */
    @Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
    private Integer orderNum = 100;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    // /**
    // * 使用范围: "yx":云校 "hrb":哈尔滨
    // */
    // @Column(name = "scope", nullable = false)
    // private String scope = "yx";

}
